﻿@{
    Layout = null;
}
 
 
 
    <div>
        <div class="overflow">
            <div class="col-lg-4 col-md-4 col-sm-4 col-lg-offset-4 col-lg-md-4 col-lg-sm-4" style="margin-bottom:15px;">
                <div class="input-group">
                    @*<input type="text" class="form-control " id="dealMsearch" placeholder="请输入活动码" />
                    <span class="input-group-addon" onclick="$.MGJ.CustomerInfo.Ajax_MarketDealList(1);">
                        <span class="glyphicon glyphicon-search"></span>
                    </span>*@
                </div>
            </div>
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th width="25"><input type="checkbox" class="AllClickCheckbox"></th>
                        <th class="text-center">头像</th>
                        <th class="text-center">活动码</th>
                        <th class="text-center">类型</th>
                        <th class="text-center">金额</th>
                        <th class="text-center">电话</th>
                        <th class="text-center">地址</th>
                        <th class="text-center">事由</th>
                        <th class="text-center">时间</th>
                        <th class="text-center">领取状态</th>
                    </tr>
                </thead>
                <tbody id="UserDealtable"   binding="{'pageId':'PagerDeal','pageCallback':'$.MGJ.CustomerInfo.Ajax_UserDealList(@ViewBag.uid)','emptyHtml':UserInfo_EmptyHtml}">
                    <tr>
                        <td width="25"><input type="checkbox" binding="{'ID':'ID'}" class="AllClickChild"></td>
                        <td>
                            <img binding="{'src':'HeadImgUrl'}" alt="null" style="width:30px;height:30px;border-radius:3px" />
                        </td>
                        <td binding="{'text':'JiaMiCode'}"></td>
                         <td binding="{'text':'GroupName'}"></td>
                         <td binding="{'text':'Denomination','textHandle':$.MGJ.CustomerInfo.Bin_Denomination}"></td>
                         <td binding="{'text':'Phone'}"></td>
                         <td binding="{'text':'Address'}"></td>
                         <td binding="{'text':'Remark' }"></td>
                         <td binding="{'text':'Time','textHandle':'datetime'}"></td>
                         <td binding="{'text':'State','textHandle':$.MGJ.CustomerInfo.Bin_State}"></td>
                    </tr>
                </tbody>
            </table>
        </div>
       
        <div id="PagerDeal"></div>
    </div>

    <script>

        var UserInfo_ColspanNub = $(".table.table-hover.table-bordered").find("tr").children("td").length
        window.UserInfo_EmptyHtml = '<tr><td colspan="' + UserInfo_ColspanNub + '"><p class="no-result">无符合条件的数据结果</p></td></tr>';
        $.MGJ.CustomerInfo.Ajax_UserDealList(@ViewBag.uid)

    </script>
